﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Decoration.IService
{
    public interface IBaseQueryService
    {
        /// <summary>
        /// 多表查询
        /// </summary>
        /// <param name="sql"></param>
        /// <param name="param"></param>
        /// <returns></returns>
        IEnumerable<T> Query<T>(string sql, object param = null);

        T ExecuteScalar<T>(string sql, object param);
    }
}
